package com.pirestupppai.imagetool.painttool;

import android.graphics.Paint;
import android.graphics.Path;

/**
 *  自定义画笔path
 */

public class CustomPaintPath {
    public Paint mPaint;
    public Path mPath;
    public int mPaintColor;
    public int mPaintWidth;

    public CustomPaintPath() {
        mPaint = new Paint();
        mPaint.setStyle(Paint.Style.STROKE);
        mPaint.setStrokeJoin(Paint.Join.ROUND);
        mPaint.setStrokeCap(Paint.Cap.ROUND);
        mPaint.setAntiAlias(true);

        mPath = new Path();
    }

    public void setmPaintColor(int color) {
        this.mPaintColor = color;
        mPaint.setColor(mPaintColor);
    }

    public void setPaintWidth(int width) {
        this.mPaintWidth = width;
        mPaint.setStrokeWidth(mPaintWidth);
    }
}
